package com.demo.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * @ClassName JdbcConfig
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/8 11:45
 * @Version 1.0
 **/
@Configuration

public class JdbcConfig {

//    @Bean("dataSource")
//    @ConfigurationProperties(value = "jdbc")
//    public DruidDataSource getDataSource() {
//        DruidDataSource druidDataSource = new DruidDataSource();
//        return druidDataSource;
//    }
}
